<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型-内边距特性</title>
    <style>
        /* 
            1. 背景色蔓延到内边距
            2. 设置单一方向 padding-left padding-right padding-top padding-bottom
        */
        div{
            width: 300px;
            height: 300px;
            /* padding: 30px; */
            background: yellow;
            text-align: justify;
            padding-left: 40px;
        }
    </style>
</head>
<body>
    <div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis recusandae nam vitae molestias, provident facilis impedit harum itaque suscipit dolore sapiente eos excepturi adipisci cupiditate. Dolorum magni soluta reprehenderit officia?</div>
</body>
</html>